#include "BookStatus.h"

//(*InternalHeaders(BookStatus)
#include <wx/intl.h>
#include <wx/string.h>
//*)

//(*IdInit(BookStatus)
const long BookStatus::ID_LISTBOX1 = wxNewId();
const long BookStatus::ID_TEXTCTRL1 = wxNewId();
const long BookStatus::ID_BUTTON1 = wxNewId();
const long BookStatus::ID_BUTTON2 = wxNewId();
const long BookStatus::ID_COMBOBOX1 = wxNewId();
const long BookStatus::ID_BUTTON3 = wxNewId();
//*)

BEGIN_EVENT_TABLE(BookStatus,wxDialog)
	//(*EventTable(BookStatus)
	//*)
END_EVENT_TABLE()

BookStatus::BookStatus(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(BookStatus)
	Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
	SetClientSize(wxSize(365,539));
	Move(wxDefaultPosition);
	ListBox1 = new wxListBox(this, ID_LISTBOX1, wxPoint(32,16), wxSize(288,272), 0, 0, 0, wxDefaultValidator, _T("ID_LISTBOX1"));
	TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, _("Text"), wxPoint(32,328), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
	Button1 = new wxButton(this, ID_BUTTON1, _("添加"), wxPoint(128,328), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
	Button2 = new wxButton(this, ID_BUTTON2, _("删除"), wxPoint(232,328), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON2"));
	ComboBox1 = new wxComboBox(this, ID_COMBOBOX1, wxEmptyString, wxPoint(64,400), wxSize(232,29), 0, 0, 0, wxDefaultValidator, _T("ID_COMBOBOX1"));
	Button3 = new wxButton(this, ID_BUTTON3, _("关闭"), wxPoint(128,480), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON3"));
	
	Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&BookStatus::OnAddTag);
	Connect(ID_BUTTON2,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&BookStatus::OnDeleteTag);
	Connect(ID_COMBOBOX1,wxEVT_COMMAND_COMBOBOX_SELECTED,(wxObjectEventFunction)&BookStatus::OnBookStatusChanged);
	Connect(ID_BUTTON3,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&BookStatus::OnClose);
	//*)
}

BookStatus::~BookStatus()
{
	//(*Destroy(BookStatus)
	//*)
}


void BookStatus::OnAddTag(wxCommandEvent& event)
{
}

void BookStatus::OnDeleteTag(wxCommandEvent& event)
{
}

void BookStatus::OnBookStatusChanged(wxCommandEvent& event)
{
}

void BookStatus::OnClose(wxCommandEvent& event)
{
    this->Show(false);
}
